﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Excel;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptBangCanDoiSoPhatSinh : Form
    {
        private object _STATIC_VSlist_MouseDown_20211C12813D_r;
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CboLoaiBaoCao")]
        private ComboBox _CboLoaiBaoCao;
        [AccessedThroughProperty("CmdCapNhat")]
        private System.Windows.Forms.Button _CmdCapNhat;
        [AccessedThroughProperty("CmdExel")]
        private System.Windows.Forms.Button _CmdExel;
        [AccessedThroughProperty("CmdOK")]
        private System.Windows.Forms.Button _CmdOK;
        [AccessedThroughProperty("CmdPrint")]
        private System.Windows.Forms.Button _CmdPrint;
        [AccessedThroughProperty("Label1")]
        private System.Windows.Forms.Label _Label1;
        [AccessedThroughProperty("Label13")]
        private System.Windows.Forms.Label _Label13;
        [AccessedThroughProperty("Label2")]
        private System.Windows.Forms.Label _Label2;
        [AccessedThroughProperty("Label3")]
        private System.Windows.Forms.Label _Label3;
        [AccessedThroughProperty("mnPopup")]
        private ContextMenuStrip _mnPopup;
        [AccessedThroughProperty("mnXemChiTiet")]
        private ToolStripMenuItem _mnXemChiTiet;
        [AccessedThroughProperty("mnXemTrangIn")]
        private ToolStripMenuItem _mnXemTrangIn;
        [AccessedThroughProperty("mnXuatRaExcel")]
        private ToolStripMenuItem _mnXuatRaExcel;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("Panel3")]
        private Panel _Panel3;
        [AccessedThroughProperty("Panel4")]
        private Panel _Panel4;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("TxtSoDuCoCuoiKy")]
        private C1NumericEdit _TxtSoDuCoCuoiKy;
        [AccessedThroughProperty("TxtSoDuCoDK")]
        private C1NumericEdit _TxtSoDuCoDK;
        [AccessedThroughProperty("TxtSoDuNoCK")]
        private C1NumericEdit _TxtSoDuNoCK;
        [AccessedThroughProperty("TxtSoDuNoDK")]
        private C1NumericEdit _TxtSoDuNoDK;
        [AccessedThroughProperty("TxtSoPhatSinhCo")]
        private C1NumericEdit _TxtSoPhatSinhCo;
        [AccessedThroughProperty("TxtSoPhatSinhNo")]
        private C1NumericEdit _TxtSoPhatSinhNo;
        [AccessedThroughProperty("updNam")]
        private NumericUpDown _updNam;
        [AccessedThroughProperty("updThang")]
        private NumericUpDown _updThang;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private bool IsLoaded;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private System.Data.DataTable pdata;

        public Frm_RptBangCanDoiSoPhatSinh()
        {
            base.Resize += new EventHandler(this.Frm_RptBangCanDoiSoPhatSinh_Resize);
            base.Load += new EventHandler(this.Frm_RptBangCanDoiSoPhatSinh_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.IsLoaded = false;
            this.InitializeComponent();
        }

        public bool CapNhatSoLieu()
        {
            bool flag=false;
            string str = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + this.updThang.Value.ToString(), 2);
            IDataParameter[] commandParameters = new IDataParameter[4];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@NamThang", DbType.Int64, ParameterDirection.Input, str);
                commandParameters[1] = DBHelper.createParameter("@KhoaDonvi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[2] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_QuetCanDoiFromNhatKy", commandParameters);
                flag = Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(commandParameters[2].Value, 0, false);
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        private void CboLoaiBaoCao_SelectedIndexChanged(object sender, EventArgs e)
        {
            if ((this.CboLoaiBaoCao.SelectedIndex == 2) && (decimal.Compare(this.updThang.Value, 12M) != 0))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Lựa chọn kh\x00f4ng hợp lệ!", ""));
                this.CboLoaiBaoCao.SelectedIndex = 0;
            }
        }

        private void CmdCapNhat_Click(object sender, EventArgs e)
        {
            if (this.CapNhatSoLieu())
            {
                this.CmdOK_Click(this.CmdOK, e);
            }
        }

        private void CmdExel_Click(object sender, EventArgs e)
        {
            try
            {
                SaveFileDialog dialog = new SaveFileDialog {
                    Filter = "Excel Files|*.xls",
                    Title = "Save an Excel file"
                };
                dialog.ShowDialog();
                if (dialog.FileName != "")
                {
                    this.VSlist.SaveExcel(dialog.FileName, "CDSPS", FileFlags.IncludeFixedCells);
                    Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Workbooks.Open(dialog.FileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
                    application.Visible = true;
                }
            }
            catch (COMException exception1)
            {
                ProjectData.SetProjectError(exception1);
                COMException exception = exception1;
                MessageBox.Show(exception.Message);
                ProjectData.ClearProjectError();
            }
            catch (Exception exception3)
            {
                ProjectData.SetProjectError(exception3);
                Exception exception2 = exception3;
                MessageBox.Show(exception2.Message);
                ProjectData.ClearProjectError();
            }
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            double num5 = 0.0;
            double num3 = 0.0;
            double num7 = 0.0;
            double num6 = 0.0;
            double left = 0.0;
            double num2 = 0.0;
            string strNamThang = LVYModule.sRight("0000" + this.updNam.Value.ToString(), 4) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            this.pdata = ReportModule.GetDataCanDoiSoPhatSinh(strNamThang, Conversions.ToString(this.CboDonVi.SelectedValue), this.CboLoaiBaoCao.SelectedIndex);
            this.VSlist.Rows.Count = 2;
            this.VSlist.Tree.Column = 1;
            this.VSlist.Tree.Style = TreeStyleFlags.CompleteLeaf;
            int num9 = this.pdata.Rows.Count - 1;
            for (int i = 0; i <= num9; i++)
            {
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                if (this.pdata.Rows[i]["TaiKhoanCha"].ToString().Trim() == this.pdata.Rows[i]["SoTaiKhoan"].ToString().Trim())
                {
                    vSlist.Rows.InsertNode(i + 2, 1);
                    num5 += Conversions.ToDouble(this.pdata.Rows[i]["SoDuNoDauKy"]);
                    num3 += Conversions.ToDouble(this.pdata.Rows[i]["SoDuCoDauKy"]);
                    num7 += Conversions.ToDouble(this.pdata.Rows[i]["SoPhatSinhNo"]);
                    num6 += Conversions.ToDouble(this.pdata.Rows[i]["SoPhatSinhCo"]);
                    left = Conversions.ToDouble(Microsoft.VisualBasic.CompilerServices.Operators.AddObject(left, this.pdata.Rows[i]["SoDuNoCuoiKy"]));
                    num2 = Conversions.ToDouble(Microsoft.VisualBasic.CompilerServices.Operators.AddObject(num2, this.pdata.Rows[i]["SoDuCoCuoiKy"]));
                }
                else
                {
                    vSlist.Rows.InsertNode(i + 2, 2);
                }
                vSlist[i + 2, 0] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["TaiKhoanCha"]);
                vSlist[i + 2, 1] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoTaiKhoan"]);
                vSlist[i + 2, 2] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["TenTaiKhoan"]);
                vSlist[i + 2, 3] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoDuNoDauKy"]);
                vSlist[i + 2, 4] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoDuCoDauKy"]);
                vSlist[i + 2, 5] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoPhatSinhNo"]);
                vSlist[i + 2, 6] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoPhatSinhCo"]);
                vSlist[i + 2, 7] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoDuNoCuoiKy"]);
                vSlist[i + 2, 8] = RuntimeHelpers.GetObjectValue(this.pdata.Rows[i]["SoDuCoCuoiKy"]);
                vSlist = null;
            }
            this.TxtSoDuNoDK.Value = num5;
            this.TxtSoDuCoDK.Value = num3;
            this.TxtSoPhatSinhNo.Value = num7;
            this.TxtSoPhatSinhCo.Value = num6;
            this.TxtSoDuNoCK.Value = left;
            this.TxtSoDuCoCuoiKy.Value = num2;
            this.VSlist.Styles.Alternate.BackColor = ProfessionalColors.ToolStripGradientMiddle;
            this.Cursor = Cursors.Default;
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            this.PrintReport();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void FormatData()
        {
            LVYModule.advFormatNumber(this.TxtSoDuNoDK, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtSoDuCoDK, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtSoPhatSinhNo, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtSoPhatSinhCo, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtSoDuNoCK, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtSoDuCoCuoiKy, modGeneral.H_FORMATNUMBER);
        }

        private void Frm_RptBangCanDoiSoPhatSinh_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                int num3;
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, true, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                int num = 0;
                do
                {
                    vSlist[1, num] = RuntimeHelpers.GetObjectValue(vSlist[0, num]);
                    vSlist.Cols[num].AllowMerging = true;
                    num++;
                    num3 = 2;
                }
                while (num <= num3);
                int num2 = this.VSlist.Cols.Count - 1;
                for (num = 3; num <= num2; num++)
                {
                    vSlist.Cols[num].TextAlignFixed = TextAlignEnum.CenterCenter;
                    vSlist.Cols[num].Format = modGeneral.H_FORMATNUMBER;
                }
                vSlist[1, 3] = modGeneral.Tranlated("Nợ", "");
                vSlist[1, 4] = modGeneral.Tranlated("C\x00f3", "");
                vSlist[1, 5] = modGeneral.Tranlated("Nợ", "");
                vSlist[1, 6] = modGeneral.Tranlated("C\x00f3", "");
                vSlist[1, 7] = modGeneral.Tranlated("Nợ", "");
                vSlist[1, 8] = modGeneral.Tranlated("C\x00f3", "");
                vSlist.Rows[0].AllowMerging = true;
                vSlist.AllowMerging = AllowMergingEnum.FixedOnly;
                vSlist = null;
                this.CboLoaiBaoCao.Items.Clear();
                this.CboLoaiBaoCao.Items.Add(modGeneral.Tranlated("Th\x00e1ng", ""));
                this.CboLoaiBaoCao.Items.Add(modGeneral.Tranlated("Qu\x00fd", ""));
                this.CboLoaiBaoCao.Items.Add(modGeneral.Tranlated("Năm", ""));
                this.CboLoaiBaoCao.SelectedIndex = 0;
                this.IsLoaded = true;
                this.updNam.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
                this.updThang.Value = new decimal(DateAndTime.Month(DateAndTime.Today));
                this.updThang_ValueChanged(this.updThang, e);
                this.FormatData();
            }
        }

        private void Frm_RptBangCanDoiSoPhatSinh_Resize(object sender, EventArgs e)
        {
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            vSlist.Cols[2].Width = vSlist.Width - (((((((vSlist.Cols[1].Width + vSlist.Cols[3].Width) + vSlist.Cols[4].Width) + vSlist.Cols[5].Width) + vSlist.Cols[6].Width) + vSlist.Cols[7].Width) + vSlist.Cols[8].Width) + SystemInformation.VerticalScrollBarWidth);
            vSlist = null;
        }

        public System.Data.DataTable GetData(string pKhoaBC)
        {
            System.Data.DataTable table;
            string str2 = "01/" + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2) + "/" + Conversions.ToString(this.updNam.Value);
            string str = Conversions.ToString(DateTime.DaysInMonth(Convert.ToInt32(this.updNam.Value), Convert.ToInt32(this.updThang.Value))) + "/" + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2) + "/" + Conversions.ToString(this.updNam.Value);
            IDataParameter[] commandParameters = new IDataParameter[4];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[1] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(str2));
                commandParameters[2] = DBHelper.createParameter("@DenNgay", DbType.Double, ParameterDirection.Input, LVYModule.Date2Char(str));
                commandParameters[3] = DBHelper.createParameter("@KhoaBaoCao", DbType.Int64, ParameterDirection.Input, pKhoaBC);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_BC_SoCaiChiTiet", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public void InitDataDanhMuc(string pKhoaBaoCao)
        {
            string str = "";
            string str3 = "";
            str = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Row, 1]), "", modGeneral.TypeOfValue.String).ToString().Trim();
            str3 = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Row, 2]), "", modGeneral.TypeOfValue.String).ToString().Trim();
            int length = str.Trim().Length;
            string commandText = " INSERT INTO BC_DuLieuDanhMuc(KhoaDanhMuc, KhoaBaoCao, Loai, MaDanhMuc, TenDanhMuc)  SELECT Khoa, '" + pKhoaBaoCao + "', '', '" + str + "', N'" + str3 + "' FROM DM_TaiKhoan WHERE LEFT(SoTaiKhoan," + length.ToString() + ") = '" + str + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptBangCanDoiSoPhatSinh));
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1 = new Panel();
            this.CboLoaiBaoCao = new ComboBox();
            this.Label3 = new System.Windows.Forms.Label();
            this.CmdCapNhat = new System.Windows.Forms.Button();
            this.Panel4 = new Panel();
            this.CmdExel = new System.Windows.Forms.Button();
            this.CmdPrint = new System.Windows.Forms.Button();
            this.CmdOK = new System.Windows.Forms.Button();
            this.Label2 = new System.Windows.Forms.Label();
            this.updNam = new NumericUpDown();
            this.Label1 = new System.Windows.Forms.Label();
            this.updThang = new NumericUpDown();
            this.CboDonVi = new ComboBox();
            this.Label13 = new System.Windows.Forms.Label();
            this.Panel2 = new Panel();
            this.Panel3 = new Panel();
            this.TxtSoDuCoCuoiKy = new C1NumericEdit();
            this.TxtSoDuNoCK = new C1NumericEdit();
            this.TxtSoPhatSinhCo = new C1NumericEdit();
            this.TxtSoPhatSinhNo = new C1NumericEdit();
            this.TxtSoDuCoDK = new C1NumericEdit();
            this.TxtSoDuNoDK = new C1NumericEdit();
            this.mnPopup = new ContextMenuStrip(this.components);
            this.mnXemChiTiet = new ToolStripMenuItem();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.mnXuatRaExcel = new ToolStripMenuItem();
            this.mnXemTrangIn = new ToolStripMenuItem();
            this.VSlist.BeginInit();
            this.Panel1.SuspendLayout();
            this.Panel4.SuspendLayout();
            this.updNam.BeginInit();
            this.updThang.BeginInit();
            this.Panel2.SuspendLayout();
            this.Panel3.SuspendLayout();
            ((ISupportInitialize) this.TxtSoDuCoCuoiKy).BeginInit();
            ((ISupportInitialize) this.TxtSoDuNoCK).BeginInit();
            ((ISupportInitialize) this.TxtSoPhatSinhCo).BeginInit();
            ((ISupportInitialize) this.TxtSoPhatSinhNo).BeginInit();
            ((ISupportInitialize) this.TxtSoDuCoDK).BeginInit();
            ((ISupportInitialize) this.TxtSoDuNoDK).BeginInit();
            this.mnPopup.SuspendLayout();
            this.SuspendLayout();
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            System.Drawing.Point point = new System.Drawing.Point(0, 0x20);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 2;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.Rows.Fixed = 2;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            Size size = new Size(0x3c7, 0x1ff);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x47;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CboLoaiBaoCao);
            this.Panel1.Controls.Add(this.Label3);
            this.Panel1.Controls.Add(this.CmdCapNhat);
            this.Panel1.Controls.Add(this.Panel4);
            this.Panel1.Controls.Add(this.CmdOK);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.updNam);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.updThang);
            this.Panel1.Controls.Add(this.CboDonVi);
            this.Panel1.Controls.Add(this.Label13);
            this.Panel1.Dock = DockStyle.Top;
            point = new System.Drawing.Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x3c7, 0x20);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 70;
            this.CboLoaiBaoCao.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiBaoCao.FormattingEnabled = true;
            this.CboLoaiBaoCao.Items.AddRange(new object[] { "Th\x00e1ng", "Qu\x00fd", "Năm" });
            point = new System.Drawing.Point(0x11f, 7);
            this.CboLoaiBaoCao.Location = point;
            this.CboLoaiBaoCao.Name = "CboLoaiBaoCao";
            size = new Size(0xe0, 0x15);
            this.CboLoaiBaoCao.Size = size;
            this.CboLoaiBaoCao.TabIndex = 0x54;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0xdb, 11);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x45, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x53;
            this.Label3.Text = "Loại b\x00e1o c\x00e1o";
            this.CmdCapNhat.Image = (Image) manager.GetObject("CmdCapNhat.Image");
            this.CmdCapNhat.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x2b7, 5);
            this.CmdCapNhat.Location = point;
            this.CmdCapNhat.Name = "CmdCapNhat";
            size = new Size(0x54, 0x18);
            this.CmdCapNhat.Size = size;
            this.CmdCapNhat.TabIndex = 0x52;
            this.CmdCapNhat.Text = "Cập nhật";
            this.CmdCapNhat.UseVisualStyleBackColor = true;
            this.Panel4.BackColor = Color.Transparent;
            this.Panel4.Controls.Add(this.CmdExel);
            this.Panel4.Controls.Add(this.CmdPrint);
            this.Panel4.Dock = DockStyle.Right;
            point = new System.Drawing.Point(0x30e, 0);
            this.Panel4.Location = point;
            this.Panel4.Name = "Panel4";
            size = new Size(0xb9, 0x20);
            this.Panel4.Size = size;
            this.Panel4.TabIndex = 0x51;
            this.CmdExel.Image = (Image) manager.GetObject("CmdExel.Image");
            this.CmdExel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x60, 5);
            this.CmdExel.Location = point;
            this.CmdExel.Name = "CmdExel";
            size = new Size(80, 0x18);
            this.CmdExel.Size = size;
            this.CmdExel.TabIndex = 0x53;
            this.CmdExel.Text = "&Excel";
            this.CmdExel.UseVisualStyleBackColor = true;
            this.CmdPrint.Image = ACCOUNTING.My.Resources.Resources.view;
            this.CmdPrint.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(9, 5);
            this.CmdPrint.Location = point;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x52, 0x18);
            this.CmdPrint.Size = size;
            this.CmdPrint.TabIndex = 0x52;
            this.CmdPrint.Text = "&Preview";
            this.CmdPrint.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new System.Drawing.Point(0x260, 5);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x54, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 80;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new System.Drawing.Point(100, 9);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x1d, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x4d;
            this.Label2.Text = "Năm";
            point = new System.Drawing.Point(0x8f, 7);
            this.updNam.Location = point;
            decimal num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.updNam.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Minimum = num;
            this.updNam.Name = "updNam";
            size = new Size(0x3a, 20);
            this.updNam.Size = size;
            this.updNam.TabIndex = 0x4c;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Value = num;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new System.Drawing.Point(3, 9);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x4b;
            this.Label1.Text = "Th\x00e1ng";
            point = new System.Drawing.Point(0x2c, 6);
            this.updThang.Location = point;
            num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Minimum = num;
            this.updThang.Name = "updThang";
            size = new Size(0x2d, 20);
            this.updThang.Size = size;
            this.updThang.TabIndex = 0x4a;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Value = num;
            this.CboDonVi.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboDonVi.FormattingEnabled = true;
            point = new System.Drawing.Point(0x17d, 0x24);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0xdf, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0x49;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x152, 40);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x26, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x3d;
            this.Label13.Text = "Đơn vị";
            this.Panel2.BackgroundImage = (Image) manager.GetObject("Panel2.BackgroundImage");
            this.Panel2.Controls.Add(this.Panel3);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new System.Drawing.Point(0, 0x21f);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x3c7, 0x19);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x48;
            this.Panel3.BackgroundImage = (Image) manager.GetObject("Panel3.BackgroundImage");
            this.Panel3.Controls.Add(this.TxtSoDuCoCuoiKy);
            this.Panel3.Controls.Add(this.TxtSoDuNoCK);
            this.Panel3.Controls.Add(this.TxtSoPhatSinhCo);
            this.Panel3.Controls.Add(this.TxtSoPhatSinhNo);
            this.Panel3.Controls.Add(this.TxtSoDuCoDK);
            this.Panel3.Controls.Add(this.TxtSoDuNoDK);
            this.Panel3.Dock = DockStyle.Right;
            point = new System.Drawing.Point(0x1a0, 0);
            this.Panel3.Location = point;
            this.Panel3.Name = "Panel3";
            size = new Size(0x227, 0x19);
            this.Panel3.Size = size;
            this.Panel3.TabIndex = 0;
            this.TxtSoDuCoCuoiKy.DataType = typeof(double);
            this.TxtSoDuCoCuoiKy.FormatType = FormatTypeEnum.Currency;
            point = new System.Drawing.Point(0x1bf, 2);
            this.TxtSoDuCoCuoiKy.Location = point;
            this.TxtSoDuCoCuoiKy.Name = "TxtSoDuCoCuoiKy";
            this.TxtSoDuCoCuoiKy.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TxtSoDuCoCuoiKy.Size = size;
            this.TxtSoDuCoCuoiKy.TabIndex = 0x91;
            this.TxtSoDuCoCuoiKy.Tag = null;
            this.TxtSoDuCoCuoiKy.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuCoCuoiKy.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuNoCK.DataType = typeof(double);
            this.TxtSoDuNoCK.FormatType = FormatTypeEnum.Currency;
            point = new System.Drawing.Point(0x16a, 2);
            this.TxtSoDuNoCK.Location = point;
            this.TxtSoDuNoCK.Name = "TxtSoDuNoCK";
            this.TxtSoDuNoCK.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TxtSoDuNoCK.Size = size;
            this.TxtSoDuNoCK.TabIndex = 0x90;
            this.TxtSoDuNoCK.Tag = null;
            this.TxtSoDuNoCK.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuNoCK.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoPhatSinhCo.DataType = typeof(double);
            this.TxtSoPhatSinhCo.FormatType = FormatTypeEnum.Currency;
            point = new System.Drawing.Point(0x115, 2);
            this.TxtSoPhatSinhCo.Location = point;
            this.TxtSoPhatSinhCo.Name = "TxtSoPhatSinhCo";
            this.TxtSoPhatSinhCo.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TxtSoPhatSinhCo.Size = size;
            this.TxtSoPhatSinhCo.TabIndex = 0x8f;
            this.TxtSoPhatSinhCo.Tag = null;
            this.TxtSoPhatSinhCo.TextAlign = HorizontalAlignment.Right;
            this.TxtSoPhatSinhCo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoPhatSinhNo.DataType = typeof(double);
            this.TxtSoPhatSinhNo.FormatType = FormatTypeEnum.Currency;
            point = new System.Drawing.Point(0xc0, 2);
            this.TxtSoPhatSinhNo.Location = point;
            this.TxtSoPhatSinhNo.Name = "TxtSoPhatSinhNo";
            this.TxtSoPhatSinhNo.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TxtSoPhatSinhNo.Size = size;
            this.TxtSoPhatSinhNo.TabIndex = 0x8e;
            this.TxtSoPhatSinhNo.Tag = null;
            this.TxtSoPhatSinhNo.TextAlign = HorizontalAlignment.Right;
            this.TxtSoPhatSinhNo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuCoDK.DataType = typeof(double);
            this.TxtSoDuCoDK.FormatType = FormatTypeEnum.Currency;
            point = new System.Drawing.Point(0x6b, 2);
            this.TxtSoDuCoDK.Location = point;
            this.TxtSoDuCoDK.Name = "TxtSoDuCoDK";
            this.TxtSoDuCoDK.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TxtSoDuCoDK.Size = size;
            this.TxtSoDuCoDK.TabIndex = 0x8d;
            this.TxtSoDuCoDK.Tag = null;
            this.TxtSoDuCoDK.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuCoDK.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoDuNoDK.DataType = typeof(double);
            this.TxtSoDuNoDK.FormatType = FormatTypeEnum.Currency;
            point = new System.Drawing.Point(0x16, 2);
            this.TxtSoDuNoDK.Location = point;
            this.TxtSoDuNoDK.Name = "TxtSoDuNoDK";
            this.TxtSoDuNoDK.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TxtSoDuNoDK.Size = size;
            this.TxtSoDuNoDK.TabIndex = 140;
            this.TxtSoDuNoDK.Tag = null;
            this.TxtSoDuNoDK.TextAlign = HorizontalAlignment.Right;
            this.TxtSoDuNoDK.VisibleButtons = DropDownControlButtonFlags.None;
            this.mnPopup.Items.AddRange(new ToolStripItem[] { this.mnXemChiTiet, this.ToolStripSeparator1, this.mnXuatRaExcel, this.mnXemTrangIn });
            this.mnPopup.Name = "mnPopup";
            size = new Size(190, 0x4c);
            this.mnPopup.Size = size;
            this.mnXemChiTiet.Name = "mnXemChiTiet";
            size = new Size(0xbd, 0x16);
            this.mnXemChiTiet.Size = size;
            this.mnXemChiTiet.Text = "Xem chi tiết ph\x00e1t sinh";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(0xba, 6);
            this.ToolStripSeparator1.Size = size;
            this.mnXuatRaExcel.Name = "mnXuatRaExcel";
            size = new Size(0xbd, 0x16);
            this.mnXuatRaExcel.Size = size;
            this.mnXuatRaExcel.Text = "Xuất ra Exel";
            this.mnXemTrangIn.Name = "mnXemTrangIn";
            size = new Size(0xbd, 0x16);
            this.mnXemTrangIn.Size = size;
            this.mnXemTrangIn.Text = "Xem trang in";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x3c7, 0x238);
            this.ClientSize = size;
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_RptBangCanDoiSoPhatSinh";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-0008             ";
            this.Text = "BANG CAN DOI SO PHAT SINH";
            this.VSlist.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.Panel4.ResumeLayout(false);
            this.updNam.EndInit();
            this.updThang.EndInit();
            this.Panel2.ResumeLayout(false);
            this.Panel3.ResumeLayout(false);
            ((ISupportInitialize) this.TxtSoDuCoCuoiKy).EndInit();
            ((ISupportInitialize) this.TxtSoDuNoCK).EndInit();
            ((ISupportInitialize) this.TxtSoPhatSinhCo).EndInit();
            ((ISupportInitialize) this.TxtSoPhatSinhNo).EndInit();
            ((ISupportInitialize) this.TxtSoDuCoDK).EndInit();
            ((ISupportInitialize) this.TxtSoDuNoDK).EndInit();
            this.mnPopup.ResumeLayout(false);
            this.ResumeLayout(false);
        }

        private void mnXemChiTiet_Click(object sender, EventArgs e)
        {
            string pKhoaBaoCao = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            this.InitDataDanhMuc(pKhoaBaoCao);
            System.Data.DataTable data = new System.Data.DataTable();
            string str3 = "01/" + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2) + "/" + Conversions.ToString(this.updNam.Value);
            string str = Conversions.ToString(DateTime.DaysInMonth(Convert.ToInt32(this.updNam.Value), Convert.ToInt32(this.updThang.Value))) + "/" + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2) + "/" + Conversions.ToString(this.updNam.Value);
            data = this.GetData(pKhoaBaoCao);
            if (data != null)
            {
                str3 = " " + modGeneral.Tranlated("từ ng\x00e0y", "") + ": " + str3 + "  " + modGeneral.Tranlated("đến ng\x00e0y", "") + ": " + str + " ";
                MyProject.Forms.Frm_SoCaiChiTietTaiKhoan.Label2.Text = str3;
                MyProject.Forms.Frm_SoCaiChiTietTaiKhoan.pData = data;
                MyProject.Forms.Frm_SoCaiChiTietTaiKhoan.ShowDialog();
            }
        }

        public void PrintReport()
        {
            if (this.pdata != null)
            {
                this.Cursor = Cursors.WaitCursor;
                if (this.pdata.Rows.Count == 0)
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
                }
                else
                {
                    Rpt_BangCanDoiSoPhatSinh sinh = new Rpt_BangCanDoiSoPhatSinh();
                    try
                    {
                        sinh.SetDataSource(this.pdata);
                        if (modGeneral.H_LANGUAGE == "VIET")
                        {
                            sinh.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                        }
                        else
                        {
                            sinh.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                        }
                        sinh.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                        sinh.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE);
                        sinh.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                        sinh.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                        sinh.SetParameterValue(5, modGeneral.Tranlated("BẢNG C\x00c2N ĐỐI SỐ PH\x00c1T SINH", ""));
                        if (decimal.Compare(this.updThang.Value, 12M) != 0)
                        {
                            sinh.SetParameterValue(6, modGeneral.Tranlated("Th\x00e1ng ", "") + ":" + LVYModule.sRight("00" + this.updThang.Value.ToString().Trim(), 2) + "/" + this.updNam.Value.ToString());
                        }
                        else
                        {
                            sinh.SetParameterValue(6, modGeneral.Tranlated("Năm ", "") + ":" + this.updNam.Value.ToString());
                        }
                        sinh.SetParameterValue(7, modGeneral.Tranlated("T\x00e0i khoản", ""));
                        sinh.SetParameterValue(8, modGeneral.Tranlated("Số dư đầu kỳ", ""));
                        sinh.SetParameterValue(9, modGeneral.Tranlated("Số ph\x00e1t sinh", ""));
                        sinh.SetParameterValue(10, modGeneral.Tranlated("Số dư cuối kỳ", ""));
                        sinh.SetParameterValue(11, modGeneral.Tranlated("Số hiệu", ""));
                        sinh.SetParameterValue(12, modGeneral.Tranlated("T\x00ean t\x00e0i khoản", ""));
                        sinh.SetParameterValue(13, modGeneral.Tranlated("Nợ", ""));
                        sinh.SetParameterValue(14, modGeneral.Tranlated("C\x00f3", ""));
                        sinh.SetParameterValue(15, modGeneral.Tranlated("Tổng cộng", ""));
                        sinh.SetParameterValue(0x10, modGeneral.Tranlated("Lập biểu", ""));
                        sinh.SetParameterValue(0x11, modGeneral.Tranlated("Kế to\x00e1n trưởng", ""));
                        sinh.SetParameterValue(0x12, modGeneral.Tranlated("Gi\x00e1m đốc", ""));
                        sinh.SetParameterValue(0x13, modGeneral.Tranlated("Ng\x00e0y .... th\x00e1ng .... năm ............", ""));
                        sinh.SetParameterValue(20, RuntimeHelpers.GetObjectValue(this.TxtSoDuNoDK.Value));
                        sinh.SetParameterValue(0x15, RuntimeHelpers.GetObjectValue(this.TxtSoDuCoDK.Value));
                        sinh.SetParameterValue(0x16, RuntimeHelpers.GetObjectValue(this.TxtSoPhatSinhNo.Value));
                        sinh.SetParameterValue(0x17, RuntimeHelpers.GetObjectValue(this.TxtSoPhatSinhCo.Value));
                        sinh.SetParameterValue(0x18, RuntimeHelpers.GetObjectValue(this.TxtSoDuNoCK.Value));
                        sinh.SetParameterValue(0x19, RuntimeHelpers.GetObjectValue(this.TxtSoDuCoCuoiKy.Value));
                        if (modGeneral.H_PHIENBANQUYETDINH == "QD15")
                        {
                            sinh.SetParameterValue(0x1a, "MẪU SỐ B01-DN");
                            sinh.SetParameterValue(0x1b, "(Ban h\x00e0nh theo QĐ số: 15/2006/QĐ-BTC\nng\x00e0y 20-03-2006 của Bộ T\x00e0i ch\x00ednh)");
                        }
                        else
                        {
                            sinh.SetParameterValue(0x1a, "MẪU SỐ B01-DNN");
                            sinh.SetParameterValue(0x1b, "(Ban h\x00e0nh theo QĐ số: 48/2006/QĐ-BTC\nng\x00e0y 14-09-2006 của Bộ T\x00e0i ch\x00ednh)");
                        }
                        MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = sinh;
                        MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                        MyProject.Forms.Frm_ViewReport.ShowDialog();
                        this.Cursor = Cursors.Default;
                    }
                    catch (Exception exception1)
                    {
                        ProjectData.SetProjectError(exception1);
                        Exception exception = exception1;
                        this.Cursor = Cursors.Default;
                        MessageBox.Show(exception.Message.ToString());
                        ProjectData.ClearProjectError();
                    }
                }
            }
        }

        private void updThang_ValueChanged(object sender, EventArgs e)
        {
            if (this.IsLoaded)
            {
                decimal num = this.updThang.Value;
                if ((((decimal.Compare(num, decimal.One) == 0) || (decimal.Compare(num, 2M) == 0)) || ((decimal.Compare(num, 4M) == 0) || (decimal.Compare(num, 5M) == 0))) || (((decimal.Compare(num, 7M) == 0) || (decimal.Compare(num, 8M) == 0)) || ((decimal.Compare(num, 10M) == 0) || (decimal.Compare(num, 11M) == 0))))
                {
                    this.CboLoaiBaoCao.SelectedIndex = 0;
                    this.CboLoaiBaoCao.Enabled = false;
                }
                else if (((decimal.Compare(num, 3M) == 0) || (decimal.Compare(num, 6M) == 0)) || ((decimal.Compare(num, 9M) == 0) || (decimal.Compare(num, 12M) == 0)))
                {
                    this.CboLoaiBaoCao.Enabled = true;
                }
            }
        }

        private void VSlist_MouseDown(object sender, MouseEventArgs e)
        {
            if (this.VSlist.MouseRow > 0)
            {
                this._STATIC_VSlist_MouseDown_20211C12813D_r = this.VSlist.MouseRow;
                this.VSlist.Select(Conversions.ToInteger(this._STATIC_VSlist_MouseDown_20211C12813D_r), 0);
                if (((e.Button == MouseButtons.Right) && (this.VSlist.Rows.Count != 1)) && (this.VSlist.Row > 0))
                {
                    System.Drawing.Point p = new System.Drawing.Point(e.X, e.Y);
                    p = this.VSlist.PointToScreen(p);
                    this.mnPopup.Show(p.X, p.Y);
                }
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual ComboBox CboLoaiBaoCao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiBaoCao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiBaoCao_SelectedIndexChanged);
                if (this._CboLoaiBaoCao != null)
                {
                    this._CboLoaiBaoCao.SelectedIndexChanged -= handler;
                }
                this._CboLoaiBaoCao = value;
                if (this._CboLoaiBaoCao != null)
                {
                    this._CboLoaiBaoCao.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdCapNhat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCapNhat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCapNhat_Click);
                if (this._CmdCapNhat != null)
                {
                    this._CmdCapNhat.Click -= handler;
                }
                this._CmdCapNhat = value;
                if (this._CmdCapNhat != null)
                {
                    this._CmdCapNhat.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdExel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExel_Click);
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click -= handler;
                }
                this._CmdExel = value;
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual ContextMenuStrip mnPopup
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnPopup;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._mnPopup = value;
            }
        }

        internal virtual ToolStripMenuItem mnXemChiTiet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnXemChiTiet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnXemChiTiet_Click);
                if (this._mnXemChiTiet != null)
                {
                    this._mnXemChiTiet.Click -= handler;
                }
                this._mnXemChiTiet = value;
                if (this._mnXemChiTiet != null)
                {
                    this._mnXemChiTiet.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnXemTrangIn
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnXemTrangIn;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._mnXemTrangIn = value;
            }
        }

        internal virtual ToolStripMenuItem mnXuatRaExcel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnXuatRaExcel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._mnXuatRaExcel = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual Panel Panel3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel3 = value;
            }
        }

        internal virtual Panel Panel4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel4 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuCoCuoiKy
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuCoCuoiKy;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuCoCuoiKy = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuCoDK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuCoDK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuCoDK = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuNoCK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuNoCK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuNoCK = value;
            }
        }

        internal virtual C1NumericEdit TxtSoDuNoDK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDuNoDK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDuNoDK = value;
            }
        }

        internal virtual C1NumericEdit TxtSoPhatSinhCo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoPhatSinhCo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoPhatSinhCo = value;
            }
        }

        internal virtual C1NumericEdit TxtSoPhatSinhNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoPhatSinhNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoPhatSinhNo = value;
            }
        }

        internal virtual NumericUpDown updNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updNam = value;
            }
        }

        internal virtual NumericUpDown updThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.updThang_ValueChanged);
                if (this._updThang != null)
                {
                    this._updThang.ValueChanged -= handler;
                }
                this._updThang = value;
                if (this._updThang != null)
                {
                    this._updThang.ValueChanged += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                MouseEventHandler handler = new MouseEventHandler(this.VSlist_MouseDown);
                if (this._VSlist != null)
                {
                    this._VSlist.MouseDown -= handler;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.MouseDown += handler;
                }
            }
        }
    }
}

